<template>
    <p>v-on</p>
    <p>{{ a }}</p>
    <el-button type="primary" @click="addOne">+1</el-button>

</template>
<script setup>
import { ref } from 'vue';
const a = ref (0)
const addOne = ()=>{
    a.value++
}
</script>